<%@ page language="java" import="java.util.*,com.knife.member.*" pageEncoding="UTF-8"%>
<%
request.setCharacterEncoding("UTF-8");
String msg="";
int	id = 0;
if(request.getParameter("id")!=null){
	id				= Integer.parseInt(request.getParameter("id"));
}
if(id>0){
	DocumenttypeDAO doctDAO=new DocumenttypeDAO();
	Documenttype doct = doctDAO.findById(id);
	try{
		doctDAO.delete(doct);
		msg="删除成功！";
	}catch(Exception e){
		msg="删除失败！";
	}
}else{
	msg="参数无效！";
}
%>
<script language="javascript">
alert("<%=msg%>");
location.href="/user/admin/inc/datatype.jsp";
</script>